<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>编辑页面</title>
    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <jsp:useBean id="user" class="servlet.User" scope="session"></jsp:useBean>
  <font color='blue'>您可以根据自身条件修改一下信息</font> <br/><br/>
   <%
    out.println("<form action='servlet/EditServlet' method='post'>");
    out.println("姓名：<input type='text' name = 'username'  value='" +user.getUsername()+"'/><br/><br/>");
    out.println("年龄：<input type='text' name = 'age'  value='" +user.getAge()+"'/><br/><br/>");
    out.println("家庭住址：<input type='text' name = 'address'  value='" +user.getAddress()+"'/><br/><br/>");
    out.println("e-mail：<input type='text' name = 'email'  value='" +user.getEmail()+"'/><br/><br/>");
    out.println("毕业学校：<input type='text' name = 'school'  value='" +user.getSchool()+"'/><br/><br/>");
    out.println("最高学历：<input type='text' name = 'diploma'  value='" +user.getDiploma()+"'/><br/><br/>");
    out.println("年龄：<input type='text' name = 'major'  value='" +user.getMajor()+"'/><br/><br/>");
    out.println("<input type='submit' value='保存'>");
    
    %>
  </body>
</html>
